package com.example.module_main.main

import com.example.lib_net.api.Api
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 * @author yaotianxue
 * @description
 * @date 2025/1/17
 */
class MainRepository @Inject constructor() {
    @Inject
    lateinit var api: Api

    /**
     * 判断版本是否需要更新
     */
    fun appLevelCheck() = flow {
        emit(api.appLevelCheck())
    }.flowOn(Dispatchers.IO)
}